/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package estg.dae.projecto.bank.impl;

import estg.dae.projecto.bank.IAccountInfo;
import java.io.Serializable;

/**
 *
 * @author Marco
 */
public class AccountInfoTO implements IAccountInfo, Serializable{

    private double accountingBalance;
    private double availableBalance;
    private String nib;

    public double getAccountingBalance()
    {
        return accountingBalance;
    }

    public double getAvailableBalance() {
        return availableBalance;
    }

    public String getNib() {
        return nib;
    }
    
    public AccountInfoTO()
    {

    }

    public AccountInfoTO(IAccountInfo accountInfo) {
        accountingBalance = accountInfo.getAccountingBalance();
        availableBalance = accountInfo.getAvailableBalance();
        nib = accountInfo.getNib();
    }

}
